#!/bin/bash
echo "Enter a no"
read input
re=0
while [ $input -gt 0 ]
do
ok=`expr $input % 10`
re=`expr $re \* 10 + $ok`
input=`expr $input / 10`
done
echo "reverse is "$re
